﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="commodity.aspx.cs" Inherits="Liguo.commodity" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            height: 157px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    <table   border="1" width="788" >
  

        
        <tr >
            <td colspan="4" align="center" >商品总表</td>
        </tr>
        <tr align="center">
             <td colspan="4" class="auto-style1"><asp:DataGrid runat="server" ID="grid"  AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanged="grid_PageIndexChanged" PageSize="20" OnSelectedIndexChanged="grid_SelectedIndexChanged">
                 <Columns>
                     <asp:BoundColumn DataField="GoodsName" HeaderText="商品名称"></asp:BoundColumn>
                     <asp:BoundColumn DataField="SaleMethod" HeaderText="销售方式"></asp:BoundColumn>
                     <asp:BoundColumn DataField="DisSales" HeaderText="散件月销量"></asp:BoundColumn>
                     <asp:BoundColumn DataField="ItemSales" HeaderText="整件月销量"></asp:BoundColumn>
                     <asp:BoundColumn DataField="DisStorage" HeaderText="散件库存量"></asp:BoundColumn>
                     <asp:BoundColumn DataField="ItemStorage" HeaderText="整件库存量"></asp:BoundColumn>
                     <asp:TemplateColumn>
                         <ItemTemplate>
                             <asp:LinkButton ID="tiaozhuan" runat="server" CommandName="xiangxi" OnClick="onlick"   CommandArgument='<%#Eval("ID")%>'>查看</asp:LinkButton>
                         </ItemTemplate>
                     </asp:TemplateColumn>
                 </Columns>
                 </asp:DataGrid>
             </td>
           
        </tr>

    </table>
    </form>
    </body>
</html>
